<div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
    <ul class="nav navbar-nav">
        {% for item in GameTypes %}
            <li><a href="index?Nid={{ item.Nid }}">{{ item.Name }}</a>
            </li>

        {% endfor %}

    </ul>
    <ul class="nav navbar navbar-top-links navbar-right mbn">
        {% if User != "" %}
            <li class="dropdown topbar-user">
                <a data-hover="dropdown" href="#" class="dropdown-toggle"><img
                        src="{{ User.PicSrcNew.url }}" alt=""
                        class="img-responsive img-circle"/>&nbsp;<span
                        class="hidden-xs" style="color: black">{{ User.Name }}</span>&nbsp;<span class="caret"></span>
                </a>
                <ul class="dropdown-menu dropdown-user pull-right">

                    <li><a href="{% url 'issuereport' %}"><i class="fa fa-user"></i>写博客</a>
                    </li>

                    <li><a href="{% url 'userinfo' %}"><i class="fa fa-user"></i>个人信息</a>
                    </li>
                    <li><a href="{% url 'logout' %}"><i class="fa fa-key"></i>注销</a>
                    </li>
                </ul>
            </li>
        {% else %}
            <li class="topbar-user">
                <a href="{% url 'login' %}" style="color: black">登录</a>
            </li>
        {% endif %}
    </ul>
</div>